<template>
  <div id="app">

    <router-view/>

    <nav class="nav">
      <ul class="nav_list">
        <li class="nav_item">
          
          <router-link to="/home" class="nav_link">
            <svg class="icon" aria-hidden="true">
              <use xlink:href="#icon-shouye"></use>
            </svg>
            <p>首页</p>
          </router-link>
        </li>
        <li class="nav_item">
          
          <router-link to="/classify" class="nav_link">
            <svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-fenlei"></use>
            </svg>
            <p>分类</p>
          </router-link>
        </li>
        <li class="nav_item">
          
          <router-link to="/timetable" class="nav_link">
            <svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-kechengbiao"></use>
            </svg>
            <p>课程表</p>
          </router-link>
        </li>
        <li class="nav_item">
          
          <router-link to="/mine" class="nav_link">
            <svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-wode"></use>
            </svg>
            <p>我的</p> 
          </router-link>
        </li>
      </ul>
    </nav>


  </div>
</template>

<script>
export default {
  name: 'App'
}
</script>

<style scoped>
#app {
  font-family: 'Avenir', Helvetica, Arial;
  width: 100%;
  height: 100%;
}
.nav{
  position: fixed;
  bottom:0;
  width: 100%;
  background-color: #fff;
}
.nav_list{
  background-color: #fff;
  padding:0.1rem 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
}
.nav_item{
  flex-grow: 1;
  text-align: center;
  font-size:0.34rem;
}
.nav_link{
  color:#777;
}
.router-link-active{
  color:#23b8ff;
}
.icon{
  font-size:0.5rem;
}
</style>
